home *** CD-ROM | disk | FTP | other *** search
- Path: sun001.spd.dsccc.com!jmccarty
- From: jmccarty@sun1307.spd.dsccc.com (Mike McCarty)
- Newsgroups: comp.lang.c
- Subject: Re: beginner question
- Date: 4 Apr 1996 22:40:07 GMT
- Organization: DSC Communications Corporation
- Message-ID: <4k1j47$iab@sun001.spd.dsccc.com>
- References: <4jc3sr$1ggu@uvaix3e1.comp.UVic.CA> <315AFED2.7466@willows.com> <315F525A.4A1CD496@alcyone.com> <31625C30.12AA@sooner.net>
- NNTP-Posting-Host: sun1307.spd.dsccc.com
-
- In article <31625C30.12AA@sooner.net>, Eddie Bush <edwbush@sooner.net> wrote:
- )Erik Max Francis wrote:
- )>
- )> Tarang Deshpande wrote:
- )>
- )> > So then what does the following mean:
- )> >
- )> > struct _FOO
- )> > {
- )> > int bar;
- )> > } FOO;
-
- This declares a VARIABLE named FOO of type struct _FOO.
-
- )> >
- )> > struct _FOO s1;
- )> > FOO s2;
-
- This is a SYNTAX ERROR.
-
- )The initial declaration of the structure doesn't make available FOO for manipulation. FOO is a
- )type. ...isn't it? I always understood that 'struct _FOO' is the 'tag name' (the name of the
-
- No, it is a variable.
-
- [rest gone]
-
- The code presented above is equivalent to
-
- int fred;
-
- fred barney;
-
- Mike
-
- --
- ----
- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
-
- I don't speak for DSC. <- They make me say that.
-